import request from '@/utils/request'

// 查询弹窗活动列表
export function activityList(query) {
  return request({
    url: '/pop/activity/list',
    method: 'get',
    params: query
  })
}

// 查询赚卡下拉框
export function cardSelect() {
  return request({
    url: '/pop/activity/cardSelect',
    method: 'get',
    
  })
}
// 新增打卡活动
export function addPopActivity(data) {
  return request({
    url: '/pop/activity',
    method: 'post',
    data
  })
}
// 查询打卡活动详情
export function popActivityDetail(id) {
  return request({
    url: '/pop/activity/' + id,
    method: 'get',
  })
}
// 编辑打卡活动
export function editPopActivity(data) {
  return request({
    url: '/pop/activity',
    method: 'put',
    data: data
  })
}

// 弹窗活动领取记录
export function receiveList(query) {
    return request({
      url: '/pop/activity/receive/list',
      method: 'get',
      params: query
    })
  }
//弹窗活动订单记录
export function orderList(query) {
    return request({
      url: '/pop/activity/order/list',
      method: 'get',
      params: query
    })
}



